package com.kevin.eshopcache.service;

import com.kevin.eshopcache.entity.ProductInfo;
import com.kevin.eshopcache.entity.ShopInfo;

/**
 * @author: e20160504
 * @date: 2018/11/2
 * @desc
 */
public interface CacheService {

    ProductInfo saveLocalCache(ProductInfo productInfo);

    ProductInfo getLocalCache(Long id);

    ShopInfo saveLocalShopCache(ShopInfo shopInfo);

    ShopInfo getLocalShopCache(Long id);


    void saveRedisProductCache(ProductInfo productInfo);

    ProductInfo getRedisProductCache(Long productId);

    void saveRedisShopCache(ShopInfo shopInfo);

    ShopInfo getRedisShopCache(Long shopId);


}
